import pandas as pd

ser = pd.Series({'a': 1, 'b': 2, 'c': 3, 'd': 4})
print(ser.index)
print(ser.values)
print('-------------------------------------')

print(ser['a'])
print(ser[['a', 'c']])
print(ser['a':'c'])

# 布尔索引
print(ser[ser > 3])
